<link href="/theme/Default/css/shop/shopDetail.css" rel="stylesheet">
<?php if (!empty($data)): ?>
<table class="shop_detail" cellpadding="0" cellspacing="0">
	<tbody>
		<tr class="tr text_title">
			<td class="col_1">Stt</td>
			<td class="col_2">Logo</td>
			<td class="col_3">Thông tin gian hàng</td>
			<td class="col_4">Liên hệ, hỗ trợ</td>
		</tr>
		<?php
			$pos = 1;
			foreach ($data as $item)
			{
		?>
		<tr class="tr">
			<td class="col_1">
				<div class="No"><?php echo $pos; ?></div>
			</td>
			<td class="col_2">
				<a class="picture_x_small" href="/gian-hang/<?php echo $item['Shop']['short_url'] ?>" target="_blank" rel="nofollow">
					<img width="68.81720430107526" maxwidth="80" maxheight="80" src="/<?php echo $item['Shop']['logo_image']?>" height="80">
				</a>
			</td>
			<td class="col_3">
				<div title="Gian hàng chuyên nghiệp tại maytot.vn" class="professional"></div>
				<div class="company_name">
					<a class="text_link" href="/gian-hang/<?php echo $item['Shop']['short_url'] ?>" target="_blank">
						<?php echo $item['Shop']['shop_name']?>
					</a>
				</div>
				<div class="address"><b><?php echo $item['Shop']['address']?></b></div>
				<div class="clear"></div>
			</td>
			<td class="col_4">
				<div class="phone">Điện thoại : <?php echo $item['Shop']['phone_number']?></div>
				<div class="website">
					<a class="text_link_2" href="http://<?php echo $item['Shop']['website'];?>" target="_blank" rel="nofollow"><?php echo $item['Shop']['website']?></a>
				</div>
			</td>
		</tr>
		<?php
				$pos++;
			}
		?>
	</tbody>
</table>
<div class="pagination pagination-centered">
	<?php
		if ($this -> Paginator -> counter('{:pages}') > 1) {
	 		echo $this -> element('pagination', array('Paginator' => $this -> Paginator));
	 	}
 	?>
</div>

<?php else: ?>
	<h4><?php echo $empty; ?></h4>
<?php endif ?>